using Google.ProtocolBuffers;
using micromsg.Proto;
using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using System.IO;
using System.Runtime.CompilerServices;
namespace micromsg
{
	[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
	public sealed class UploadVideoRequest : GeneratedMessageLite<UploadVideoRequest, UploadVideoRequest.Builder>
	{
		[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
		public sealed class Builder : GeneratedBuilderLite<UploadVideoRequest, UploadVideoRequest.Builder>
		{
			private bool resultIsReadOnly;
			private UploadVideoRequest result;
			protected override UploadVideoRequest.Builder ThisBuilder
			{
				get
				{
					return this;
				}
			}
			public override bool IsInitialized
			{
				get
				{
					return this.result.IsInitialized;
				}
			}
			protected override UploadVideoRequest MessageBeingBuilt
			{
				get
				{
					return this.PrepareBuilder();
				}
			}
			public override UploadVideoRequest DefaultInstanceForType
			{
				get
				{
					return UploadVideoRequest.DefaultInstance;
				}
			}
			public BaseRequest BaseRequest
			{
				get
				{
					return this.result.BaseRequest;
				}
				set
				{
					this.SetBaseRequest(value);
				}
			}
			public string ClientMsgId
			{
				get
				{
					return this.result.ClientMsgId;
				}
				set
				{
					this.SetClientMsgId(value);
				}
			}
			public string FromUserName
			{
				get
				{
					return this.result.FromUserName;
				}
				set
				{
					this.SetFromUserName(value);
				}
			}
			public string ToUserName
			{
				get
				{
					return this.result.ToUserName;
				}
				set
				{
					this.SetToUserName(value);
				}
			}
			public uint ThumbTotalLen
			{
				get
				{
					return this.result.ThumbTotalLen;
				}
				set
				{
					this.SetThumbTotalLen(value);
				}
			}
			public uint ThumbStartPos
			{
				get
				{
					return this.result.ThumbStartPos;
				}
				set
				{
					this.SetThumbStartPos(value);
				}
			}
			public SKBuiltinBuffer_t ThumbData
			{
				get
				{
					return this.result.ThumbData;
				}
				set
				{
					this.SetThumbData(value);
				}
			}
			public uint VideoTotalLen
			{
				get
				{
					return this.result.VideoTotalLen;
				}
				set
				{
					this.SetVideoTotalLen(value);
				}
			}
			public uint VideoStartPos
			{
				get
				{
					return this.result.VideoStartPos;
				}
				set
				{
					this.SetVideoStartPos(value);
				}
			}
			public SKBuiltinBuffer_t VideoData
			{
				get
				{
					return this.result.VideoData;
				}
				set
				{
					this.SetVideoData(value);
				}
			}
			public uint PlayLength
			{
				get
				{
					return this.result.PlayLength;
				}
				set
				{
					this.SetPlayLength(value);
				}
			}
			public uint NetworkEnv
			{
				get
				{
					return this.result.NetworkEnv;
				}
				set
				{
					this.SetNetworkEnv(value);
				}
			}
			public uint CameraType
			{
				get
				{
					return this.result.CameraType;
				}
				set
				{
					this.SetCameraType(value);
				}
			}
			public uint FuncFlag
			{
				get
				{
					return this.result.FuncFlag;
				}
				set
				{
					this.SetFuncFlag(value);
				}
			}
			public string MsgSource
			{
				get
				{
					return this.result.MsgSource;
				}
				set
				{
					this.SetMsgSource(value);
				}
			}
			public Builder()
			{
				this.result = UploadVideoRequest.DefaultInstance;
				this.resultIsReadOnly = true;
			}
			internal Builder(UploadVideoRequest cloneFrom)
			{
				this.result = cloneFrom;
				this.resultIsReadOnly = true;
			}
			private UploadVideoRequest PrepareBuilder()
			{
				if (this.resultIsReadOnly)
				{
					UploadVideoRequest other = this.result;
					this.result = new UploadVideoRequest();
					this.resultIsReadOnly = false;
					this.MergeFrom(other);
				}
				return this.result;
			}
			public override UploadVideoRequest.Builder Clear()
			{
				this.result = UploadVideoRequest.DefaultInstance;
				this.resultIsReadOnly = true;
				return this;
			}
			public override UploadVideoRequest.Builder Clone()
			{
				if (this.resultIsReadOnly)
				{
					return new UploadVideoRequest.Builder(this.result);
				}
				return new UploadVideoRequest.Builder().MergeFrom(this.result);
			}
			public override UploadVideoRequest BuildPartial()
			{
				if (this.resultIsReadOnly)
				{
					return this.result;
				}
				this.resultIsReadOnly = true;
				return this.result.MakeReadOnly();
			}
			public override UploadVideoRequest.Builder MergeFrom(IMessageLite other)
			{
				if (other is UploadVideoRequest)
				{
					return this.MergeFrom((UploadVideoRequest)other);
				}
				base.MergeFrom(other);
				return this;
			}
			public override UploadVideoRequest.Builder MergeFrom(UploadVideoRequest other)
			{
				return this;
			}
			public override UploadVideoRequest.Builder MergeFrom(ICodedInputStream input)
			{
				return this.MergeFrom(input, ExtensionRegistry.Empty);
			}
			public override UploadVideoRequest.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
			{
				this.PrepareBuilder();
				uint num;
				string text;
				while (input.ReadTag(out num, out text))
				{
					if (num == 0u && text != null)
					{
						int num2 = Array.BinarySearch<string>(UploadVideoRequest._uploadVideoRequestFieldNames, text, StringComparer.get_Ordinal());
						if (num2 < 0)
						{
							this.ParseUnknownField(input, extensionRegistry, num, text);
							continue;
						}
						num = UploadVideoRequest._uploadVideoRequestFieldTags[num2];
					}
					uint num3 = num;
					if (num3 <= 58u)
					{
						if (num3 <= 26u)
						{
							if (num3 <= 10u)
							{
								if (num3 == 0u)
								{
									throw InvalidProtocolBufferException.InvalidTag();
								}
								if (num3 == 10u)
								{
									BaseRequest.Builder builder = BaseRequest.CreateBuilder();
									if (this.result.hasBaseRequest)
									{
										builder.MergeFrom(this.BaseRequest);
									}
									input.ReadMessage(builder, extensionRegistry);
									this.BaseRequest = builder.BuildPartial();
									continue;
								}
							}
							else
							{
								if (num3 == 18u)
								{
									this.result.hasClientMsgId = input.ReadString(ref this.result.clientMsgId_);
									continue;
								}
								if (num3 == 26u)
								{
									this.result.hasFromUserName = input.ReadString(ref this.result.fromUserName_);
									continue;
								}
							}
						}
						else
						{
							if (num3 <= 40u)
							{
								if (num3 == 34u)
								{
									this.result.hasToUserName = input.ReadString(ref this.result.toUserName_);
									continue;
								}
								if (num3 == 40u)
								{
									this.result.hasThumbTotalLen = input.ReadUInt32(ref this.result.thumbTotalLen_);
									continue;
								}
							}
							else
							{
								if (num3 == 48u)
								{
									this.result.hasThumbStartPos = input.ReadUInt32(ref this.result.thumbStartPos_);
									continue;
								}
								if (num3 == 58u)
								{
									SKBuiltinBuffer_t.Builder builder2 = SKBuiltinBuffer_t.CreateBuilder();
									if (this.result.hasThumbData)
									{
										builder2.MergeFrom(this.ThumbData);
									}
									input.ReadMessage(builder2, extensionRegistry);
									this.ThumbData = builder2.BuildPartial();
									continue;
								}
							}
						}
					}
					else
					{
						if (num3 <= 88u)
						{
							if (num3 <= 72u)
							{
								if (num3 == 64u)
								{
									this.result.hasVideoTotalLen = input.ReadUInt32(ref this.result.videoTotalLen_);
									continue;
								}
								if (num3 == 72u)
								{
									this.result.hasVideoStartPos = input.ReadUInt32(ref this.result.videoStartPos_);
									continue;
								}
							}
							else
							{
								if (num3 == 82u)
								{
									SKBuiltinBuffer_t.Builder builder3 = SKBuiltinBuffer_t.CreateBuilder();
									if (this.result.hasVideoData)
									{
										builder3.MergeFrom(this.VideoData);
									}
									input.ReadMessage(builder3, extensionRegistry);
									this.VideoData = builder3.BuildPartial();
									continue;
								}
								if (num3 == 88u)
								{
									this.result.hasPlayLength = input.ReadUInt32(ref this.result.playLength_);
									continue;
								}
							}
						}
						else
						{
							if (num3 <= 104u)
							{
								if (num3 == 96u)
								{
									this.result.hasNetworkEnv = input.ReadUInt32(ref this.result.networkEnv_);
									continue;
								}
								if (num3 == 104u)
								{
									this.result.hasCameraType = input.ReadUInt32(ref this.result.cameraType_);
									continue;
								}
							}
							else
							{
								if (num3 == 112u)
								{
									this.result.hasFuncFlag = input.ReadUInt32(ref this.result.funcFlag_);
									continue;
								}
								if (num3 == 122u)
								{
									this.result.hasMsgSource = input.ReadString(ref this.result.msgSource_);
									continue;
								}
							}
						}
					}
					if (WireFormat.IsEndGroupTag(num))
					{
						return this;
					}
					this.ParseUnknownField(input, extensionRegistry, num, text);
				}
				return this;
			}
			public UploadVideoRequest.Builder SetBaseRequest(BaseRequest value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasBaseRequest = true;
				this.result.baseRequest_ = value;
				return this;
			}
			public UploadVideoRequest.Builder SetBaseRequest(BaseRequest.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.hasBaseRequest = true;
				this.result.baseRequest_ = builderForValue.Build();
				return this;
			}
			public UploadVideoRequest.Builder MergeBaseRequest(BaseRequest value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				if (this.result.hasBaseRequest && this.result.baseRequest_ != BaseRequest.DefaultInstance)
				{
					this.result.baseRequest_ = BaseRequest.CreateBuilder(this.result.baseRequest_).MergeFrom(value).BuildPartial();
				}
				else
				{
					this.result.baseRequest_ = value;
				}
				this.result.hasBaseRequest = true;
				return this;
			}
			public UploadVideoRequest.Builder ClearBaseRequest()
			{
				this.PrepareBuilder();
				this.result.hasBaseRequest = false;
				this.result.baseRequest_ = null;
				return this;
			}
			public UploadVideoRequest.Builder SetClientMsgId(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasClientMsgId = true;
				this.result.clientMsgId_ = value;
				return this;
			}
			public UploadVideoRequest.Builder ClearClientMsgId()
			{
				this.PrepareBuilder();
				this.result.hasClientMsgId = false;
				this.result.clientMsgId_ = "";
				return this;
			}
			public UploadVideoRequest.Builder SetFromUserName(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasFromUserName = true;
				this.result.fromUserName_ = value;
				return this;
			}
			public UploadVideoRequest.Builder ClearFromUserName()
			{
				this.PrepareBuilder();
				this.result.hasFromUserName = false;
				this.result.fromUserName_ = "";
				return this;
			}
			public UploadVideoRequest.Builder SetToUserName(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasToUserName = true;
				this.result.toUserName_ = value;
				return this;
			}
			public UploadVideoRequest.Builder ClearToUserName()
			{
				this.PrepareBuilder();
				this.result.hasToUserName = false;
				this.result.toUserName_ = "";
				return this;
			}
			public UploadVideoRequest.Builder SetThumbTotalLen(uint value)
			{
				this.PrepareBuilder();
				this.result.hasThumbTotalLen = true;
				this.result.thumbTotalLen_ = value;
				return this;
			}
			public UploadVideoRequest.Builder ClearThumbTotalLen()
			{
				this.PrepareBuilder();
				this.result.hasThumbTotalLen = false;
				this.result.thumbTotalLen_ = 0u;
				return this;
			}
			public UploadVideoRequest.Builder SetThumbStartPos(uint value)
			{
				this.PrepareBuilder();
				this.result.hasThumbStartPos = true;
				this.result.thumbStartPos_ = value;
				return this;
			}
			public UploadVideoRequest.Builder ClearThumbStartPos()
			{
				this.PrepareBuilder();
				this.result.hasThumbStartPos = false;
				this.result.thumbStartPos_ = 0u;
				return this;
			}
			public UploadVideoRequest.Builder SetThumbData(SKBuiltinBuffer_t value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasThumbData = true;
				this.result.thumbData_ = value;
				return this;
			}
			public UploadVideoRequest.Builder SetThumbData(SKBuiltinBuffer_t.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.hasThumbData = true;
				this.result.thumbData_ = builderForValue.Build();
				return this;
			}
			public UploadVideoRequest.Builder MergeThumbData(SKBuiltinBuffer_t value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				if (this.result.hasThumbData && this.result.thumbData_ != SKBuiltinBuffer_t.DefaultInstance)
				{
					this.result.thumbData_ = SKBuiltinBuffer_t.CreateBuilder(this.result.thumbData_).MergeFrom(value).BuildPartial();
				}
				else
				{
					this.result.thumbData_ = value;
				}
				this.result.hasThumbData = true;
				return this;
			}
			public UploadVideoRequest.Builder ClearThumbData()
			{
				this.PrepareBuilder();
				this.result.hasThumbData = false;
				this.result.thumbData_ = null;
				return this;
			}
			public UploadVideoRequest.Builder SetVideoTotalLen(uint value)
			{
				this.PrepareBuilder();
				this.result.hasVideoTotalLen = true;
				this.result.videoTotalLen_ = value;
				return this;
			}
			public UploadVideoRequest.Builder ClearVideoTotalLen()
			{
				this.PrepareBuilder();
				this.result.hasVideoTotalLen = false;
				this.result.videoTotalLen_ = 0u;
				return this;
			}
			public UploadVideoRequest.Builder SetVideoStartPos(uint value)
			{
				this.PrepareBuilder();
				this.result.hasVideoStartPos = true;
				this.result.videoStartPos_ = value;
				return this;
			}
			public UploadVideoRequest.Builder ClearVideoStartPos()
			{
				this.PrepareBuilder();
				this.result.hasVideoStartPos = false;
				this.result.videoStartPos_ = 0u;
				return this;
			}
			public UploadVideoRequest.Builder SetVideoData(SKBuiltinBuffer_t value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasVideoData = true;
				this.result.videoData_ = value;
				return this;
			}
			public UploadVideoRequest.Builder SetVideoData(SKBuiltinBuffer_t.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.hasVideoData = true;
				this.result.videoData_ = builderForValue.Build();
				return this;
			}
			public UploadVideoRequest.Builder MergeVideoData(SKBuiltinBuffer_t value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				if (this.result.hasVideoData && this.result.videoData_ != SKBuiltinBuffer_t.DefaultInstance)
				{
					this.result.videoData_ = SKBuiltinBuffer_t.CreateBuilder(this.result.videoData_).MergeFrom(value).BuildPartial();
				}
				else
				{
					this.result.videoData_ = value;
				}
				this.result.hasVideoData = true;
				return this;
			}
			public UploadVideoRequest.Builder ClearVideoData()
			{
				this.PrepareBuilder();
				this.result.hasVideoData = false;
				this.result.videoData_ = null;
				return this;
			}
			public UploadVideoRequest.Builder SetPlayLength(uint value)
			{
				this.PrepareBuilder();
				this.result.hasPlayLength = true;
				this.result.playLength_ = value;
				return this;
			}
			public UploadVideoRequest.Builder ClearPlayLength()
			{
				this.PrepareBuilder();
				this.result.hasPlayLength = false;
				this.result.playLength_ = 0u;
				return this;
			}
			public UploadVideoRequest.Builder SetNetworkEnv(uint value)
			{
				this.PrepareBuilder();
				this.result.hasNetworkEnv = true;
				this.result.networkEnv_ = value;
				return this;
			}
			public UploadVideoRequest.Builder ClearNetworkEnv()
			{
				this.PrepareBuilder();
				this.result.hasNetworkEnv = false;
				this.result.networkEnv_ = 0u;
				return this;
			}
			public UploadVideoRequest.Builder SetCameraType(uint value)
			{
				this.PrepareBuilder();
				this.result.hasCameraType = true;
				this.result.cameraType_ = value;
				return this;
			}
			public UploadVideoRequest.Builder ClearCameraType()
			{
				this.PrepareBuilder();
				this.result.hasCameraType = false;
				this.result.cameraType_ = 0u;
				return this;
			}
			public UploadVideoRequest.Builder SetFuncFlag(uint value)
			{
				this.PrepareBuilder();
				this.result.hasFuncFlag = true;
				this.result.funcFlag_ = value;
				return this;
			}
			public UploadVideoRequest.Builder ClearFuncFlag()
			{
				this.PrepareBuilder();
				this.result.hasFuncFlag = false;
				this.result.funcFlag_ = 0u;
				return this;
			}
			public UploadVideoRequest.Builder SetMsgSource(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasMsgSource = true;
				this.result.msgSource_ = value;
				return this;
			}
			public UploadVideoRequest.Builder ClearMsgSource()
			{
				this.PrepareBuilder();
				this.result.hasMsgSource = false;
				this.result.msgSource_ = "";
				return this;
			}
		}
		public const int BaseRequestFieldNumber = 1;
		public const int ClientMsgIdFieldNumber = 2;
		public const int FromUserNameFieldNumber = 3;
		public const int ToUserNameFieldNumber = 4;
		public const int ThumbTotalLenFieldNumber = 5;
		public const int ThumbStartPosFieldNumber = 6;
		public const int ThumbDataFieldNumber = 7;
		public const int VideoTotalLenFieldNumber = 8;
		public const int VideoStartPosFieldNumber = 9;
		public const int VideoDataFieldNumber = 10;
		public const int PlayLengthFieldNumber = 11;
		public const int NetworkEnvFieldNumber = 12;
		public const int CameraTypeFieldNumber = 13;
		public const int FuncFlagFieldNumber = 14;
		public const int MsgSourceFieldNumber = 15;
		private static readonly UploadVideoRequest defaultInstance;
		private static readonly string[] _uploadVideoRequestFieldNames;
		private static readonly uint[] _uploadVideoRequestFieldTags;
		private bool hasBaseRequest;
		private BaseRequest baseRequest_;
		private bool hasClientMsgId;
		private string clientMsgId_ = "";
		private bool hasFromUserName;
		private string fromUserName_ = "";
		private bool hasToUserName;
		private string toUserName_ = "";
		private bool hasThumbTotalLen;
		private uint thumbTotalLen_;
		private bool hasThumbStartPos;
		private uint thumbStartPos_;
		private bool hasThumbData;
		private SKBuiltinBuffer_t thumbData_;
		private bool hasVideoTotalLen;
		private uint videoTotalLen_;
		private bool hasVideoStartPos;
		private uint videoStartPos_;
		private bool hasVideoData;
		private SKBuiltinBuffer_t videoData_;
		private bool hasPlayLength;
		private uint playLength_;
		private bool hasNetworkEnv;
		private uint networkEnv_;
		private bool hasCameraType;
		private uint cameraType_;
		private bool hasFuncFlag;
		private uint funcFlag_;
		private bool hasMsgSource;
		private string msgSource_ = "";
		private int memoizedSerializedSize = -1;
		public static UploadVideoRequest DefaultInstance
		{
			get
			{
				return UploadVideoRequest.defaultInstance;
			}
		}
		public override UploadVideoRequest DefaultInstanceForType
		{
			get
			{
				return UploadVideoRequest.DefaultInstance;
			}
		}
		protected override UploadVideoRequest ThisMessage
		{
			get
			{
				return this;
			}
		}
		public BaseRequest BaseRequest
		{
			get
			{
				return this.baseRequest_ ?? BaseRequest.DefaultInstance;
			}
		}
		public string ClientMsgId
		{
			get
			{
				return this.clientMsgId_;
			}
		}
		public string FromUserName
		{
			get
			{
				return this.fromUserName_;
			}
		}
		public string ToUserName
		{
			get
			{
				return this.toUserName_;
			}
		}
		public uint ThumbTotalLen
		{
			get
			{
				return this.thumbTotalLen_;
			}
		}
		public uint ThumbStartPos
		{
			get
			{
				return this.thumbStartPos_;
			}
		}
		public SKBuiltinBuffer_t ThumbData
		{
			get
			{
				return this.thumbData_ ?? SKBuiltinBuffer_t.DefaultInstance;
			}
		}
		public uint VideoTotalLen
		{
			get
			{
				return this.videoTotalLen_;
			}
		}
		public uint VideoStartPos
		{
			get
			{
				return this.videoStartPos_;
			}
		}
		public SKBuiltinBuffer_t VideoData
		{
			get
			{
				return this.videoData_ ?? SKBuiltinBuffer_t.DefaultInstance;
			}
		}
		public uint PlayLength
		{
			get
			{
				return this.playLength_;
			}
		}
		public uint NetworkEnv
		{
			get
			{
				return this.networkEnv_;
			}
		}
		public uint CameraType
		{
			get
			{
				return this.cameraType_;
			}
		}
		public uint FuncFlag
		{
			get
			{
				return this.funcFlag_;
			}
		}
		public string MsgSource
		{
			get
			{
				return this.msgSource_;
			}
		}
		public override bool IsInitialized
		{
			get
			{
				return this.hasBaseRequest && this.hasThumbTotalLen && this.hasThumbStartPos && this.hasThumbData && this.hasVideoTotalLen && this.hasVideoStartPos && this.hasVideoData && this.hasPlayLength && this.BaseRequest.IsInitialized && this.ThumbData.IsInitialized && this.VideoData.IsInitialized;
			}
		}
		public override int SerializedSize
		{
			get
			{
				int num = this.memoizedSerializedSize;
				if (num != -1)
				{
					return num;
				}
				num = 0;
				if (this.hasBaseRequest)
				{
					num += CodedOutputStream.ComputeMessageSize(1, this.BaseRequest);
				}
				if (this.hasClientMsgId)
				{
					num += CodedOutputStream.ComputeStringSize(2, this.ClientMsgId);
				}
				if (this.hasFromUserName)
				{
					num += CodedOutputStream.ComputeStringSize(3, this.FromUserName);
				}
				if (this.hasToUserName)
				{
					num += CodedOutputStream.ComputeStringSize(4, this.ToUserName);
				}
				if (this.hasThumbTotalLen)
				{
					num += CodedOutputStream.ComputeUInt32Size(5, this.ThumbTotalLen);
				}
				if (this.hasThumbStartPos)
				{
					num += CodedOutputStream.ComputeUInt32Size(6, this.ThumbStartPos);
				}
				if (this.hasThumbData)
				{
					num += CodedOutputStream.ComputeMessageSize(7, this.ThumbData);
				}
				if (this.hasVideoTotalLen)
				{
					num += CodedOutputStream.ComputeUInt32Size(8, this.VideoTotalLen);
				}
				if (this.hasVideoStartPos)
				{
					num += CodedOutputStream.ComputeUInt32Size(9, this.VideoStartPos);
				}
				if (this.hasVideoData)
				{
					num += CodedOutputStream.ComputeMessageSize(10, this.VideoData);
				}
				if (this.hasPlayLength)
				{
					num += CodedOutputStream.ComputeUInt32Size(11, this.PlayLength);
				}
				if (this.hasNetworkEnv)
				{
					num += CodedOutputStream.ComputeUInt32Size(12, this.NetworkEnv);
				}
				if (this.hasCameraType)
				{
					num += CodedOutputStream.ComputeUInt32Size(13, this.CameraType);
				}
				if (this.hasFuncFlag)
				{
					num += CodedOutputStream.ComputeUInt32Size(14, this.FuncFlag);
				}
				if (this.hasMsgSource)
				{
					num += CodedOutputStream.ComputeStringSize(15, this.MsgSource);
				}
				this.memoizedSerializedSize = num;
				return num;
			}
		}
		private UploadVideoRequest()
		{
		}
		public override void WriteTo(ICodedOutputStream output)
		{
			int arg_06_0 = this.SerializedSize;
			string[] uploadVideoRequestFieldNames = UploadVideoRequest._uploadVideoRequestFieldNames;
			if (this.hasBaseRequest)
			{
				output.WriteMessage(1, uploadVideoRequestFieldNames[0], this.BaseRequest);
			}
			if (this.hasClientMsgId)
			{
				output.WriteString(2, uploadVideoRequestFieldNames[2], this.ClientMsgId);
			}
			if (this.hasFromUserName)
			{
				output.WriteString(3, uploadVideoRequestFieldNames[3], this.FromUserName);
			}
			if (this.hasToUserName)
			{
				output.WriteString(4, uploadVideoRequestFieldNames[11], this.ToUserName);
			}
			if (this.hasThumbTotalLen)
			{
				output.WriteUInt32(5, uploadVideoRequestFieldNames[10], this.ThumbTotalLen);
			}
			if (this.hasThumbStartPos)
			{
				output.WriteUInt32(6, uploadVideoRequestFieldNames[9], this.ThumbStartPos);
			}
			if (this.hasThumbData)
			{
				output.WriteMessage(7, uploadVideoRequestFieldNames[8], this.ThumbData);
			}
			if (this.hasVideoTotalLen)
			{
				output.WriteUInt32(8, uploadVideoRequestFieldNames[14], this.VideoTotalLen);
			}
			if (this.hasVideoStartPos)
			{
				output.WriteUInt32(9, uploadVideoRequestFieldNames[13], this.VideoStartPos);
			}
			if (this.hasVideoData)
			{
				output.WriteMessage(10, uploadVideoRequestFieldNames[12], this.VideoData);
			}
			if (this.hasPlayLength)
			{
				output.WriteUInt32(11, uploadVideoRequestFieldNames[7], this.PlayLength);
			}
			if (this.hasNetworkEnv)
			{
				output.WriteUInt32(12, uploadVideoRequestFieldNames[6], this.NetworkEnv);
			}
			if (this.hasCameraType)
			{
				output.WriteUInt32(13, uploadVideoRequestFieldNames[1], this.CameraType);
			}
			if (this.hasFuncFlag)
			{
				output.WriteUInt32(14, uploadVideoRequestFieldNames[4], this.FuncFlag);
			}
			if (this.hasMsgSource)
			{
				output.WriteString(15, uploadVideoRequestFieldNames[5], this.MsgSource);
			}
		}
		public override int GetHashCode()
		{
			int num = base.GetType().GetHashCode();
			if (this.hasBaseRequest)
			{
				num ^= this.baseRequest_.GetHashCode();
			}
			if (this.hasClientMsgId)
			{
				num ^= this.clientMsgId_.GetHashCode();
			}
			if (this.hasFromUserName)
			{
				num ^= this.fromUserName_.GetHashCode();
			}
			if (this.hasToUserName)
			{
				num ^= this.toUserName_.GetHashCode();
			}
			if (this.hasThumbTotalLen)
			{
				num ^= this.thumbTotalLen_.GetHashCode();
			}
			if (this.hasThumbStartPos)
			{
				num ^= this.thumbStartPos_.GetHashCode();
			}
			if (this.hasThumbData)
			{
				num ^= this.thumbData_.GetHashCode();
			}
			if (this.hasVideoTotalLen)
			{
				num ^= this.videoTotalLen_.GetHashCode();
			}
			if (this.hasVideoStartPos)
			{
				num ^= this.videoStartPos_.GetHashCode();
			}
			if (this.hasVideoData)
			{
				num ^= this.videoData_.GetHashCode();
			}
			if (this.hasPlayLength)
			{
				num ^= this.playLength_.GetHashCode();
			}
			if (this.hasNetworkEnv)
			{
				num ^= this.networkEnv_.GetHashCode();
			}
			if (this.hasCameraType)
			{
				num ^= this.cameraType_.GetHashCode();
			}
			if (this.hasFuncFlag)
			{
				num ^= this.funcFlag_.GetHashCode();
			}
			if (this.hasMsgSource)
			{
				num ^= this.msgSource_.GetHashCode();
			}
			return num;
		}
		public override bool Equals(object value)
		{
			UploadVideoRequest uploadVideoRequest = value as UploadVideoRequest;
			return uploadVideoRequest != null && (this.hasBaseRequest == uploadVideoRequest.hasBaseRequest && (!this.hasBaseRequest || this.baseRequest_.Equals(uploadVideoRequest.baseRequest_))) && (this.hasClientMsgId == uploadVideoRequest.hasClientMsgId && (!this.hasClientMsgId || this.clientMsgId_.Equals(uploadVideoRequest.clientMsgId_))) && (this.hasFromUserName == uploadVideoRequest.hasFromUserName && (!this.hasFromUserName || this.fromUserName_.Equals(uploadVideoRequest.fromUserName_))) && (this.hasToUserName == uploadVideoRequest.hasToUserName && (!this.hasToUserName || this.toUserName_.Equals(uploadVideoRequest.toUserName_))) && (this.hasThumbTotalLen == uploadVideoRequest.hasThumbTotalLen && (!this.hasThumbTotalLen || this.thumbTotalLen_.Equals(uploadVideoRequest.thumbTotalLen_))) && (this.hasThumbStartPos == uploadVideoRequest.hasThumbStartPos && (!this.hasThumbStartPos || this.thumbStartPos_.Equals(uploadVideoRequest.thumbStartPos_))) && (this.hasThumbData == uploadVideoRequest.hasThumbData && (!this.hasThumbData || this.thumbData_.Equals(uploadVideoRequest.thumbData_))) && (this.hasVideoTotalLen == uploadVideoRequest.hasVideoTotalLen && (!this.hasVideoTotalLen || this.videoTotalLen_.Equals(uploadVideoRequest.videoTotalLen_))) && (this.hasVideoStartPos == uploadVideoRequest.hasVideoStartPos && (!this.hasVideoStartPos || this.videoStartPos_.Equals(uploadVideoRequest.videoStartPos_))) && (this.hasVideoData == uploadVideoRequest.hasVideoData && (!this.hasVideoData || this.videoData_.Equals(uploadVideoRequest.videoData_))) && (this.hasPlayLength == uploadVideoRequest.hasPlayLength && (!this.hasPlayLength || this.playLength_.Equals(uploadVideoRequest.playLength_))) && (this.hasNetworkEnv == uploadVideoRequest.hasNetworkEnv && (!this.hasNetworkEnv || this.networkEnv_.Equals(uploadVideoRequest.networkEnv_))) && (this.hasCameraType == uploadVideoRequest.hasCameraType && (!this.hasCameraType || this.cameraType_.Equals(uploadVideoRequest.cameraType_))) && (this.hasFuncFlag == uploadVideoRequest.hasFuncFlag && (!this.hasFuncFlag || this.funcFlag_.Equals(uploadVideoRequest.funcFlag_))) && (this.hasMsgSource == uploadVideoRequest.hasMsgSource && (!this.hasMsgSource || this.msgSource_.Equals(uploadVideoRequest.msgSource_)));
		}
		public override void PrintTo(TextWriter writer)
		{
			GeneratedMessageLite<UploadVideoRequest, UploadVideoRequest.Builder>.PrintField("BaseRequest", this.hasBaseRequest, this.baseRequest_, writer);
			GeneratedMessageLite<UploadVideoRequest, UploadVideoRequest.Builder>.PrintField("ClientMsgId", this.hasClientMsgId, this.clientMsgId_, writer);
			GeneratedMessageLite<UploadVideoRequest, UploadVideoRequest.Builder>.PrintField("FromUserName", this.hasFromUserName, this.fromUserName_, writer);
			GeneratedMessageLite<UploadVideoRequest, UploadVideoRequest.Builder>.PrintField("ToUserName", this.hasToUserName, this.toUserName_, writer);
			GeneratedMessageLite<UploadVideoRequest, UploadVideoRequest.Builder>.PrintField("ThumbTotalLen", this.hasThumbTotalLen, this.thumbTotalLen_, writer);
			GeneratedMessageLite<UploadVideoRequest, UploadVideoRequest.Builder>.PrintField("ThumbStartPos", this.hasThumbStartPos, this.thumbStartPos_, writer);
			GeneratedMessageLite<UploadVideoRequest, UploadVideoRequest.Builder>.PrintField("ThumbData", this.hasThumbData, this.thumbData_, writer);
			GeneratedMessageLite<UploadVideoRequest, UploadVideoRequest.Builder>.PrintField("VideoTotalLen", this.hasVideoTotalLen, this.videoTotalLen_, writer);
			GeneratedMessageLite<UploadVideoRequest, UploadVideoRequest.Builder>.PrintField("VideoStartPos", this.hasVideoStartPos, this.videoStartPos_, writer);
			GeneratedMessageLite<UploadVideoRequest, UploadVideoRequest.Builder>.PrintField("VideoData", this.hasVideoData, this.videoData_, writer);
			GeneratedMessageLite<UploadVideoRequest, UploadVideoRequest.Builder>.PrintField("PlayLength", this.hasPlayLength, this.playLength_, writer);
			GeneratedMessageLite<UploadVideoRequest, UploadVideoRequest.Builder>.PrintField("NetworkEnv", this.hasNetworkEnv, this.networkEnv_, writer);
			GeneratedMessageLite<UploadVideoRequest, UploadVideoRequest.Builder>.PrintField("CameraType", this.hasCameraType, this.cameraType_, writer);
			GeneratedMessageLite<UploadVideoRequest, UploadVideoRequest.Builder>.PrintField("FuncFlag", this.hasFuncFlag, this.funcFlag_, writer);
			GeneratedMessageLite<UploadVideoRequest, UploadVideoRequest.Builder>.PrintField("MsgSource", this.hasMsgSource, this.msgSource_, writer);
		}
		public static UploadVideoRequest ParseFrom(byte[] data)
		{
			return UploadVideoRequest.CreateBuilder().MergeFrom(data).BuildParsed();
		}
		private UploadVideoRequest MakeReadOnly()
		{
			return this;
		}
		public static UploadVideoRequest.Builder CreateBuilder()
		{
			return new UploadVideoRequest.Builder();
		}
		public override UploadVideoRequest.Builder ToBuilder()
		{
			return UploadVideoRequest.CreateBuilder(this);
		}
		public override UploadVideoRequest.Builder CreateBuilderForType()
		{
			return new UploadVideoRequest.Builder();
		}
		public static UploadVideoRequest.Builder CreateBuilder(UploadVideoRequest prototype)
		{
			return new UploadVideoRequest.Builder(prototype);
		}
		static UploadVideoRequest()
		{
			UploadVideoRequest.defaultInstance = new UploadVideoRequest().MakeReadOnly();
			UploadVideoRequest._uploadVideoRequestFieldNames = new string[]
			{
				"BaseRequest",
				"CameraType",
				"ClientMsgId",
				"FromUserName",
				"FuncFlag",
				"MsgSource",
				"NetworkEnv",
				"PlayLength",
				"ThumbData",
				"ThumbStartPos",
				"ThumbTotalLen",
				"ToUserName",
				"VideoData",
				"VideoStartPos",
				"VideoTotalLen"
			};
			UploadVideoRequest._uploadVideoRequestFieldTags = new uint[]
			{
				10u,
				104u,
				18u,
				26u,
				112u,
				122u,
				96u,
				88u,
				58u,
				48u,
				40u,
				34u,
				82u,
				72u,
				64u
			};
			object.ReferenceEquals(micromsg.Proto.UploadVideoRequest.Descriptor, null);
		}
	}
}
